package com.jemmyee.pizza.entity;
// default package

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;


/**
 * EquiRegister entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="equi_register"
    ,catalog="milestone.dbo"
)

public class EquiRegister  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Integer applyId;
     private String applyDept;
     private String address;
     private String contacter;
     private String tel;
     private String fax;
     private Integer runType = 0;
     private String hourMax;
     private String timePart;
     private String curYearPart;
     private String curUseLaw;
     private String curUseDays;
     private String nextYearPart;
     private String nextUseLaw;
     private String nextUseDays;
     private Date startDate;
     private String jingbanUser;
     private Date createDate;


    // Constructors

    /** default constructor */
    public EquiRegister() {
    }

    
    /** full constructor */
    public EquiRegister(Integer applyId, String applyDept, String address, String contacter, String tel, String fax, Integer runType, String hourMax, String timePart, String curYearPart, String curUseLaw, String nextYearPart, String nextUseLaw, Date startDate, String jingbanUser, Date createDate) {
        this.applyId = applyId;
        this.applyDept = applyDept;
        this.address = address;
        this.contacter = contacter;
        this.tel = tel;
        this.fax = fax;
        this.runType = runType;
        this.hourMax = hourMax;
        this.timePart = timePart;
        this.curYearPart = curYearPart;
        this.curUseLaw = curUseLaw;
        this.nextYearPart = nextYearPart;
        this.nextUseLaw = nextUseLaw;
        this.startDate = startDate;
        this.jingbanUser = jingbanUser;
        this.createDate = createDate;
    }

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="increment")@Id @GeneratedValue(generator="generator")
    
    @Column(name="id", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="apply_id")

    public Integer getApplyId() {
        return this.applyId;
    }
    
    public void setApplyId(Integer applyId) {
        this.applyId = applyId;
    }
    
    @Column(name="apply_dept", length=200)

    public String getApplyDept() {
        return this.applyDept;
    }
    
    public void setApplyDept(String applyDept) {
        this.applyDept = applyDept;
    }
    
    @Column(name="address", length=200)

    public String getAddress() {
        return this.address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }
    
    @Column(name="contacter", length=50)

    public String getContacter() {
        return this.contacter;
    }
    
    public void setContacter(String contacter) {
        this.contacter = contacter;
    }
    
    @Column(name="tel", length=20)

    public String getTel() {
        return this.tel;
    }
    
    public void setTel(String tel) {
        this.tel = tel;
    }
    
    @Column(name="fax", length=20)

    public String getFax() {
        return this.fax;
    }
    
    public void setFax(String fax) {
        this.fax = fax;
    }
    
    @Column(name="run_type")

    public Integer getRunType() {
        return this.runType;
    }
    
    @Transient
    public String getRunTypeView(){
    	if(runType == 0){
    		return "现金缴费" ;
    	}else if(runType == 1){
    		return "气票缴费" ;
    	}else if(runType == 2){
    		return "卡扣费" ;
    	}else{
    		return "现金缴费" ;
    	}
    }
    
    public void setRunType(Integer runType) {
        this.runType = runType;
    }
    
    @Column(name="hour_max", length=50)

    public String getHourMax() {
        return this.hourMax;
    }
    
    public void setHourMax(String hourMax) {
        this.hourMax = hourMax;
    }
    
    @Column(name="time_part", length=200)

    public String getTimePart() {
        return this.timePart;
    }
    
    public void setTimePart(String timePart) {
        this.timePart = timePart;
    }
    
    @Column(name="cur_year_part", length=200)

    public String getCurYearPart() {
        return this.curYearPart;
    }
    
    public void setCurYearPart(String curYearPart) {
        this.curYearPart = curYearPart;
    }
    
    @Column(name="cur_use_law", length=200)

    public String getCurUseLaw() {
        return this.curUseLaw;
    }
    
    public void setCurUseLaw(String curUseLaw) {
        this.curUseLaw = curUseLaw;
    }
    
    @Column(name="next_year_part", length=200)

    public String getNextYearPart() {
        return this.nextYearPart;
    }
    
    public void setNextYearPart(String nextYearPart) {
        this.nextYearPart = nextYearPart;
    }
    
    @Column(name="next_use_law", length=200)

    public String getNextUseLaw() {
        return this.nextUseLaw;
    }
    
    public void setNextUseLaw(String nextUseLaw) {
        this.nextUseLaw = nextUseLaw;
    }
@Temporal(TemporalType.DATE)
    @Column(name="start_date", length=0)

    public Date getStartDate() {
        return this.startDate;
    }
    
    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }
    
    @Column(name="jingban_user", length=50)

    public String getJingbanUser() {
        return this.jingbanUser;
    }
    
    public void setJingbanUser(String jingbanUser) {
        this.jingbanUser = jingbanUser;
    }
@Temporal(TemporalType.DATE)
    @Column(name="create_date", length=0)

    public Date getCreateDate() {
        return this.createDate;
    }
    
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Column(name="cur_use_days", length=50)
	public String getCurUseDays() {
		return curUseDays;
	}


	public void setCurUseDays(String curUseDays) {
		this.curUseDays = curUseDays;
	}

	@Column(name="next_use_days", length=50)
	public String getNextUseDays() {
		return nextUseDays;
	}


	public void setNextUseDays(String nextUseDays) {
		this.nextUseDays = nextUseDays;
	}
   








}